home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / gnuplot-faq < prev    next >
Internet Message Format  |  1993-02-17  |  14KB

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!spool.mu.edu!nigel.msen.com!math.fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!fg70.rz.uni-karlsruhe.de!ig25
  2. From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
  3. Newsgroups: comp.graphics.gnuplot,comp.answers,news.answers
  4. Subject: comp.graphics.gnuplot FAQ (Frequent Answered Questions)
  5. Supersedes: <comp-graphics-gnuplot_728583183@fg70.rz.uni-karlsruhe.de>
  6. Followup-To: comp.graphics.gnuplot
  7. Date: 2 Feb 1993 11:08:46 GMT
  8. Organization: University of Karlsruhe, Germany
  9. Lines: 333
  10. Approved: news-answers-request@MIT.Edu
  11. Expires: 18 Mar 1993 11:08:45 GMT
  12. Message-ID: <comp-graphics-gnuplot_728651325@fg70.rz.uni-karlsruhe.de>
  13. Reply-To: ig25@rz.uni-karlsruhe.de
  14. NNTP-Posting-Host: fg70.rz.uni-karlsruhe.de
  15. Mime-Version: 1.0
  16. Content-Type: text/plain; charset=iso-8859-1
  17. Content-Transfer-Encoding: 8bit
  18. Summary: This is the FAQ (Frequently Answered Questions) list of the
  19.      comp.graphics.gnuplot newsgroup, which discusses the
  20.          gnuplot program for plotting 2D - and 3D - graphs.
  21. Keywords: computer graphics, gnuplot
  22. Xref: senator-bedfellow.mit.edu comp.graphics.gnuplot:724 comp.answers:44 news.answers:5657
  23.  
  24. Archive-name: graphics/gnuplot-faq
  25. Version: $Header: comp-graphics-gnuplot,v 1.3 93/02/02 12:06:53 ig25 Exp $
  26.  
  27. This is the FAQ (Frequently Answered Questions) list of the
  28. comp.graphics.gnuplot newsgroup, which discusses the gnuplot program for
  29. plotting 2D - and 3D - graphs.
  30.  
  31. Most of the information in this document came from public discussion on
  32. comp.graphics.gnuplot; quotations are believed to be in the public
  33. domain.
  34.  
  35. Here's a list of the questions.  If you are looking for the answer for a
  36. specific question, look for the string Qxx:  at the beginning of a line,
  37. with xx being the question number.
  38.  
  39. Questions:
  40.  
  41. Section 0: Meta - Questions
  42. Q0.1: Where do I get this document?
  43. Q0.2: Where do I send comments about this document?
  44.  
  45. Section 1: General Information
  46. Q1.1: What is gnuplot?
  47. Q1.2: How did it come about and why is it called gnuplot?
  48. Q1.3: Does gnuplot have anything to do with the FSF and the GNU project?
  49. Q1.4: What does gnuplot offer?
  50. Q1.5: Is gnuplot suitable for batch processing?
  51. Q1.6: Can I run gnuplot on my computer?
  52.  
  53. Section 2: Setting it up
  54. Q2.1: What is the current version of gnuplot?
  55. Q2.2: Where can I get gnuplot?
  56. Q2.3: How do I get gnuplot to compile on my system?
  57. Q2.4: What documentation is there, and how do I get it?
  58.  
  59. Section 3: Working with it
  60. Q3.1: How do I get help?
  61. Q3.2: How do I print out my graphs?
  62. Q3.3: How do I include my graphs in <word processor>?
  63.  
  64. Section 4: Wanted Features in gnuplot
  65. Q4.1: Does gnuplot have hidden line removal?
  66. Q4.2: Does gnuplot support boxes?
  67.  
  68. Section 5: Miscellaneous
  69. Q5.1: I've found a bug, what do I do?
  70. Q5.2: Can I use gnuplot routines for my own programs?
  71. Q5.3: What extensions have people made to gnuplot? Where can I get them?
  72.  
  73.  
  74. Questions and Answers:
  75.  
  76. Section 0: Meta - Questions.
  77.  
  78. Q0.1: Where do I get this document?
  79.  
  80. This document is posted about once every four weeks to the newsgroups
  81. comp.graphics.gnuplot, comp.answers and news.answers.  It will also be
  82. available via anonymous ftp from rtfm.mit.edu [18.172.1.27] in the
  83. directory /pub/usenet/comp.graphics.gnuplot.
  84.  
  85. Q0.2: Where do I send comments about this document?
  86.  
  87. Send comments, suggestions etc. via e-mail to Thomas Koenig,
  88. ig25@rz.uni-karlsruhe.de or ig25@dkauni2.bitnet.
  89.  
  90. Section 1: General Information
  91.  
  92. Q1.1: What is gnuplot?
  93.  
  94. Gnuplot is a command-driven interactive function plotting program.  It
  95. can be used to plot functions and data points in both two- and three-
  96. dimensional plots in many different formats, and will accomodate many of
  97. the needs of today's scientists for graphic data representation.
  98. Gnuplot is copyrighted, but freely distributable; you don't have to pay
  99. for it.
  100.  
  101. Q1.2: How did it come about and why is it called gnuplot?
  102.  
  103. The authors of gnuplot are:
  104.  
  105. Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John Campbell,
  106. Gershon Elber, Alexander Woo and many others.
  107.  
  108. The following quote comes from Thomas Williams:
  109.  
  110. Any reference to GNUplot is incorrect.  The real name of the program
  111. is "gnuplot".  You see people use "Gnuplot" quite a bit because many
  112. of us have an aversion to starting a sentence with a lower case
  113. letter, even in the case of proper nouns and titles.  Gnuplot is not
  114. related to the GNU project or the FSF in any but the most peripheral
  115. sense.  Our software was designed completely independently and the
  116. name "gnuplot" was actually a compromise.  I wanted to call it
  117. "llamaplot" and Colin wanted to call it "nplot."  We agreed that
  118. "newplot" was acceptable but, we then discovered that there was an
  119. absolutely ghastly pascal program of that name that the Computer
  120. Science Dept. occasionally used.  I decided that "gnuplot" would make
  121. a nice pun and after a fashion Colin agreed.
  122.  
  123. Q1.3: Does gnuplot have anything to do with the FSF and the GNU project?
  124.  
  125. No.  Gnuplot is not covered by the General Public License, either.
  126.  
  127. Q1.4: What does gnuplot offer?
  128.  
  129. - Plotting of two - dimensional functions and data points in many different
  130.   styles (points, lines, error bars)
  131. - plotting of three - dimensional data points and surfaces in many
  132.   different styles (contour plot, mesh).
  133. - support for complex arithmetic
  134. - self - defined functions
  135. - support for a large number of operating systems, graphics file formats
  136.   and devices
  137. - extensive online help
  138. - labels for title, axes, data points 
  139. - command line editing and history on most platforms
  140.  
  141. Q1.5: Is gnuplot suitable for batch processing?
  142.  
  143. Yes.  You can read in files from the command line, or you can redirect
  144. your standard input to read from a file.  Both data and command files
  145. can be generated automatically, from data aquisition programs or
  146. whatever else you use.
  147.  
  148. Q1.6: Can I run gnuplot on my computer?
  149.  
  150. Gnuplot is available for a number of platforms.  These are:  UNIX,
  151. VAX/VMS, OS/2, MS-DOS.  Modifications for Macintosh (Think - C 3.0)
  152. exist and are part of the gpcontrb distribution; they are untested.
  153. Modifications for NEC 8901 and OS/9 are said to exist (where?).  A
  154. version for the Atari ST exists at terminator.cc.umich.edu, but is
  155. unstable.  The MS-Windows version at ftp.cica.indiana.edu is
  156. an extemely early alpha version.
  157.  
  158. Section 2: Setting it up
  159.  
  160. Q2.1: What is the current version of gnuplot?
  161.  
  162. The current version of gnuplot is 3.2, patchlevel 2.  Version 3.3
  163. is currently in beta test.
  164.  
  165. Q2.2: Where can I get gnuplot?
  166.  
  167. The official distribution site for the gnuplot source is dartmouth.edu
  168. [129.170.16.4], the file is called gnuplot.3.2.tar.Z.  Official mirrors
  169. of that distribution are (for Australia) monu1.cc.monash.edu.au
  170. [130.194.1.101] and (for Europe) irisa.irisa.fr [131.254.2.3].  You can
  171. also get it from your friendly neighbourhood comp.sources.misc archive.
  172.  
  173. MS-DOS binaries are available from garbo.uwasa.fi [128.214.87.1] as
  174. /pc/plot/gnup32.zip.  Plaza.aarnet.edu.au [139.130.4.6] and
  175. wuarchive.wustl.edu [128.252.135.4] are available as mirrors.  OS/2
  176. binaries are at ftp-os2.nmsu.edu [128.123.35.151], in
  177. /pub/os2/unix/gnu/gnuplt32.zip .
  178.  
  179. People without ftp access can use an ftp-mail server; send mail to
  180. bitftp@pucc.bitnet (for BITNET only) or ftpmail@decwrl.dec.com with the
  181. word 'help' in the mail body for more information.
  182.  
  183. It is a good idea to look for a nearby ftp site when downloading things.
  184. You can use archie for this.  See if an archie client is installed at
  185. your system (by simply typing archie at the command prompt), or send
  186. mail to archie@sura.net with the word 'help' in both the subject line
  187. and the body of the mail.  However, be aware that the version you find
  188. at a near ftp site may well be out of date; check the last modification
  189. date and the number of bytes against the newest release at one of the
  190. official servers.
  191.  
  192. Q2.3: How do I get gnuplot to compile on my system?
  193.  
  194. As you would any other installation.  Read the files README and
  195. README.Install, edit the Makefile according to taste, and run make or
  196. whatever is suitable for your operating system.
  197.  
  198. If you get a complaint about a missing file libplot.a or something
  199. similar when building gnuplot for x11, remove -DUNIXPLOT from the
  200. TERMFLAGS= line, remove -lplot from the LIBS= line and run again.  If
  201. you are making x11 on a sun, type 'make x11_sun'.
  202.  
  203. Q2.4: What documentation is there, and how do I get it?
  204.  
  205. The documentation is included in the source distribution.  Look at the
  206. docs subdirectory, where you'll find
  207.  
  208.  - a unix man page, which says how to start gnuplot
  209.  - a help file, which also can be printed as a manual
  210.  - a tutorial on using gnuplot with latex
  211.  - a quick reference summary sheet for TeX only
  212.  
  213. Postscript copies of the documentation can be ftp'd from dartmouth.edu,
  214. in pub/gnuplot, as manual.ps.Z and tutorial.ps.Z
  215.  
  216.  
  217. Section 3: Working with it
  218.  
  219. Q3.1: How do I get help?
  220.  
  221. Give the 'help' command at the initial prompt.  After that, keep
  222. looking through the keywords.  Good starting points are 'plot'
  223. and 'set'.
  224.  
  225. Read the manual, if you have it.
  226.  
  227. Ask your colleagues, the system administrator or the person who set
  228. up gnuplot.
  229.  
  230. Post a question to comp.graphics.gnuplot or send mail to the gatewayed
  231. mailing list info-gnuplot@dartmouth.edu.  If you want to subscribe to
  232. the mailing list, send mail to info-gnuplot-request@dartmouth.edu,
  233. but please don't do this if you can get comp.graphics.gnuplot directly.
  234. If you pose a question there, it is considered good form to solicit
  235. e-mail replies and post a summary.
  236.  
  237. Q3.2: How do I print out my graphs?
  238.  
  239. The kind of output produced is determined by the 'set terminal' command;
  240. for example, 'set terminal postscript' will produce the graph in
  241. postscript format.  Output can be redirected using the 'set output'
  242. command.
  243.  
  244. As an example, the following prints out a graph of sin(x) on a UNIX
  245. machine running X - Windows.
  246.  
  247. gnuplot> plot [-6:6] sin(x)
  248. gnuplot> set terminal postscript
  249. Terminal type set to 'postscript'
  250. Options are 'landscape monochrome "Courier" 14'
  251. gnuplot> set output "sin.ps"
  252. gnuplot> replot
  253. gnuplot> set output                      # set output back to default
  254. gnuplot> set terminal                    # dto. for terminal type
  255. gnuplot> ! lp -ops sin.ps                # print ps - File (site dependent)
  256. request id is lprint-3433 (standard input)
  257. lp: printed file sin.ps on fg20.rz.uni-karlsruhe.de (5068 Byte)
  258. !
  259. gnuplot> 
  260.  
  261. Q3.3: How do I include my graphs in <word processor>?
  262.  
  263. This depends on the kind of word processor you use.
  264.  
  265. Many word processors can use encapsulated postscript for graphs.  This
  266. can be generated by the 'set terminal postscript eps' command.  Most
  267. MS-DOS word processors understand HPGL (terminal type hpgl).
  268.  
  269. With TeX, it depends on what you use to print your dvi files.  If you
  270. use dvips or dvi2ps, you can use encapsulated postscript.  For
  271. emtex (popular for MS-DOS), you can use emtex, otherwise use the
  272. latex terminal type, which generates a picture environment.
  273.  
  274. If nothing else helps, try using the pgm or ppm format and converting it
  275. to a bitmap format your favourite word processor can understand.  An
  276. invaluable tool for this is Jeff Poskanzer's ppmplus package.
  277.  
  278.  
  279. Section 4:  Wanted Features in gnuplot
  280.  
  281. Q4.1: Does gnuplot have hidden line removal?
  282.  
  283. Version 3.3 supports hidden line removal on all platforms except MS-DOS.
  284. If someone can solve the 64K DGROUP memory problem, it would support
  285. hidden line removal there as well.
  286.  
  287. Q4.2: Does gnuplot support boxes?
  288.  
  289. Version 3.3 will.
  290.  
  291.  
  292. Section  5:  Miscellaneous
  293.  
  294. Q5.1: I've found a bug, what do I do?
  295.  
  296. First, try to see wether it actually is a bug, or wether it is a feature
  297. which may be turned off by some obscure set - command.  If you have a
  298. fairly general sort of bug report, posting to comp.graphics.gnuplot is
  299. probably the way to go.  If you have investigated a problem in detail,
  300. especially if you have a context diff that fixes the problem, please
  301. e-email a report to bug-gnuplot@ames.arc.nasa.gov.  The bug-gnuplot list
  302. is for reporting and collecting bug fixes, the comp.graphics.gnuplot
  303. mailing list will be more help for finding work arounds or actually
  304. solving gnuplot related problems.  If you do send in a bug report, be
  305. sure and include the version of gnuplot (including patchlevel), terminal
  306. driver, operating system, an exact description of the bug and input
  307. which can reproduce the bug.  Also, any context diffs should be
  308. referenced against the latest official version of gnuplot if at all
  309. possible.
  310.  
  311. Q5.2: Can I use gnuplot routines for my own programs?
  312.  
  313. Yes.  John Campbell <jdc@nauvax.ucc.nau.edu> has written gplotlib, a
  314. version of gnuplot as C subroutines callable from a C program.  This is
  315. available as gplotlib.tar.Z on the machine ftp.nau.edu in the directory
  316. /pub/gplotlib.tar.Z.  It is also included in the gpcontrb distribution
  317. in the campbell subdirectory.
  318.  
  319. Q5.3: What extensions have people made to gnuplot? Where can I get them?
  320.  
  321. Extensions have been put into the file gpcontrb.tar.Z.  Its contains
  322. the following subdirectories:
  323.  
  324. byrne subdirectory:
  325.     From: "Margaret R. Byrne" <mrb2j@kelvin.seas.virginia.edu>
  326.     Subject: congp3d3 preprocessor to draw contour plots on
  327.         irregular regions.
  328. clark subdirectory:
  329.     From: Michael Clark <clarkmp@prony.Colorado.EDU>
  330.     Subject: data filtering: adds point_skip & point_offs
  331. hanna subdirectory:
  332.     From: gregor@kafka.saic.com (gregg hanna)
  333.     Subject: x11-library mode, gnulib_x11.[c,h], xlibtest.c,makefile.xlib
  334. yamamoto subdirectory:
  335.         From: "NOBORU YAMAMOTO     " <sun!kekvax.kek.jp!YAMAMOTO@pixar.com>
  336.     Subject: Re: gnuplot on Apple Macintosh, "diff -c" of version 3.0
  337. russo subdirectory:
  338.     From: russo@rudedog.nrl.navy.mil
  339.     Subject: gnuplotio bidirectional pipe C-library
  340. woo subdirectory:
  341.     From: "Alex Woo" <woo@ra-next.arc.nasa.gov>
  342.     Subject: two additional title lines and fixes to errorbar style
  343. green subdirectory:
  344.     From: Roque Donizete de Oliveira <oliveria@engin.umich.edu>
  345.     Subject: Postscript greek symbols in gnuplot, new prologue
  346.  
  347. Section 6: Credits
  348.  
  349. This list was initially compiled by John Fletcher with contributions
  350. from Russell Lang, John Campbell, Dave Kotz, Rob Cunningham, Dan
  351. Lewart and Alex Woo. Reworked by Thomas Koenig from a draft by
  352. Alex Woo, with corrections from Alex Woo and John Campbell.
  353. -- 
  354. Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
  355. The joy of engineering is to find a straight line on a double
  356. logarithmic diagram.
  357.